import store from '../base/store'
import Sprite from '../base/sprite'

/**
 * 开始按钮精灵
 */
export class StartSprite extends Sprite {
  constructor() {
    const image = Sprite.getMap('start')
    const ascept = image.height / image.width
    const w = image.width / 2
    const h = w * ascept
    super(
      image,
      0,
      0,
      image.width,
      image.height,
      (store.canvas.width - w) / 2,
      (store.canvas.height - h) / 2,
      w,
      h
    )
  }
}
